<!doctype html>
<html class="no-js fixed-layout" data-ng-app="audittest">
#include("/WEB-INF/tpl/head.vm")

<div data-ng-controller="admin-doc">
	<div class="am-cf am-padding">
		<div class="am-fl am-cf">
			<strong class="am-text-primary am-text-lg">首页</strong> / <small>文档管理</small>
		</div>
	</div>
	<div>
		<div class="am-in">
			<button type="button" class="am-margin-right am-btn am-btn-primary"
				data-ng-click="add()">新增文档</button>
		</div>
		<table
			class="am-table am-table-bd am-table-striped admin-content-table">
			<thead>
				<tr>
					<th>序号</th>
					<th>文档编号</th>
					<th>文档名</th>
					<th>提交编辑者</th>
					<th>提交时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr data-ng-repeat="item in items">
					<td>{{$index + 1}}</td>
					<td>{{item.docbh}}</td>
					<td>{{item.docname}}</td>
					<td>{{item.creater}}</td>
					<td>{{item.createtime}}</td>
					<td><button type="button" class="am-btn am-btn-primary"
							data-ng-click="edit(item)">编辑</button>
						<button type="button" class="am-btn am-btn-danger"
							data-ng-click="deleteItem(item)">删除</button></td>
				</tr>
			</tbody>
		</table>
	</div>

	<div class="am-modal am-modal-no-btn" tabindex="-1" id="doc-modal-1">
		<div class="am-modal-dialog">
			<div class="am-modal-hd">
				新增/编辑 文档 <a href="javascript: void(0)"
					class="am-close am-close-spin" data-am-modal-close>&times;</a>
			</div>
			<div class="am-modal-bd am-form am-form-horizontal">
				<form action="./docadd" enctype="multipart/form-data" id="docadd"
					method="post">
					<table
						class="am-table am-table-bd am-table-striped admin-content-table">
						<tr>
							<td>文档编号</td>
							<td><input data-ng-model="currentItem.docbh" name="docbh"
								readonly="readonly" type="text" /></td>
						</tr>
						<tr>
							<td>文档名称</td>
							<td><input data-ng-model="currentItem.docname" type="text" name="docname"/></td>
						</tr>
						<tr>
							<td>文件</td>
							<td><input type="file" name="file" />如果仅是更新元数据，不需要再次提交文档，当然，您也可以同时更新文档</td>
						</tr>
					</table>
				</form>
				<button type="button" class="am-btn am-btn-primary"
					data-ng-click="postData()">提交</button>
			</div>
		</div>
	</div>

</div>
#include("/WEB-INF/tpl/footer.vm")
</html>
